import {PostAuth,GetAuth,
  // PostControl
} from "./config"


//获取首页基本展示列表
// export const GetListBaseInfo=(params)=>GetControl('listTitle',params,"Article")
 

// console.log(configAPI)
const KEY="article"


//后台添加文章
export const AddArticle=(params)=>PostAuth(KEY,"add",params)

export const ArticleList=(params)=>GetAuth(KEY,"category_list",params).then(res=>res.data); 
export const AuthAccurateFind=(params)=>GetAuth(KEY,"auth_accurate_find",params).then(res=>res.data); 
export const SearchForTitleStatusTabs=(params)=>PostAuth(KEY,"search_for_title_status_tabs",params).then(res=>res.data); 
export const GetTagAll=(params)=>GetAuth(KEY,"get_tag_all",params).then(res=>res.data); 

// export const PostControl=(url,data,header)=>{
//   return axios.post(api.Article+'/'+ url,data,{header}).then(res=>res.data);
// }


 
// export function getOrgTree (parameter) {
//     return axios({
//       url: api.orgTree,
//       method: 'get',
//       params: parameter
//     })
//   }
// export const Register=params=>{ 
//     params['domain_name']=domainName 
//     return controlBusPost({ method:"api.user.companyuser.invite.register",params }) 
//   }


 
// header: {
//   'Content-Type': 'multipart/form-data'
// }
// headers: {
  //       'Content-Type': 'application/json;charset=UTF-8'
  //     },




 
// export function getOrgTree (parameter) {
//     return axios({
//       url: api.orgTree,
//       method: 'get',
//       params: parameter
//     })
//   }
// export const Register=params=>{ 
//     params['domain_name']=domainName 
//     return controlBusPost({ method:"api.user.companyuser.invite.register",params }) 
//   }
